package com.cxf.dao;

import com.cxf.pojo.User;

import java.util.List;

public interface UserDao {

	User getUserByName(String userName);
	Integer getUserIdByName(String userName); //通过用户名查找用户ID
	void addUser(User user);
	void updateUser(User user); //更新用户信息
	User findUserById(Integer id);
	User findUserByUserName(String userName);
	List<User> getAllUser(); //获取所有用户
	Integer insertUser(User user);
	Integer deleteUser(User user);
	Integer getIdByUserName(String userName);
	String getPasswordByUserName(String name);
	Integer getUserIdByUserName(String userName);

}
